]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Make wireless insensitive when hardware-disabled
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 3 Aug 2022 21:24:53 +0000 (23:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 16:37:15 +0000 (16:37 +0000)
We cannot do anything while switched off, so indicate that to the
user.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2408>

js/ui/status/network.js

index 28a5cfa0f932eba8800ff9615b0d6c22c25a6ce3..abd3c3f518afbc5b41fb02e118433976ed977f09 100644 (file)
@@ -1705,6 +1705,9 @@ class NMWirelessSection extends NMDeviceSection {
         this._client?.bind_property('wireless-enabled',
             this, 'checked',
             GObject.BindingFlags.SYNC_CREATE);
+        this._client?.bind_property('wireless-hardware-enabled',
+            this, 'reactive',
+            GObject.BindingFlags.SYNC_CREATE);
     }
 
     activate() {